package com.qilu.careprogram.pojo.vo;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PatientInfoWithRegisterVO {
    /** 住院号 */
    private String hospitalNumber;

    private String idCard;

    /** 性别（0男/1女） */
    private String gender;

    /** 年龄 */
    private Integer age;

    /** 造口类型（选择字段） */
    private String stomaType;

    /** 手术日期 */
    private String surgeryDate;

    /**  原发病 */
    private String disease;

    /** 通信地址 */
    private String address;

    /** 电话 */
    private String phone;

    /**  回访次数 */
    private Integer reVisitsNum;

    /** 注册情况 */
    private String isRegister;

    // 从 PatientInfoVO 转换的构造函数
    public PatientInfoWithRegisterVO(PatientInfoVO vo, String isRegister) {
        this.hospitalNumber = vo.getHospitalNumber();
        this.gender = vo.getGender();
        this.age = vo.getAge();
        this.stomaType = vo.getStomaType();
        this.surgeryDate = vo.getSurgeryDate();
        this.disease = vo.getDisease();
        this.address = vo.getAddress();
        this.phone = vo.getPhone();
        this.reVisitsNum = vo.getReVisitsNum();
        this.isRegister = isRegister;
    }
}